home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / query_actions < prev    next >
Text File  |  2001-04-06  |  1KB  |  32 lines

  1. SYNOPSIS
  2.         mixed *query_actions(object ob, mixed mask_or_verb)
  3.  
  4. DESCRIPTION
  5.         query_actions takes either an object or a filename as first
  6.         argument and a bitmask (int) or string as a second argument.
  7.         If the second argument is a string, query_actions() will return
  8.         an array containing information (see below) on the verb or
  9.         zero if the living object "ob" cannot use the verb. If the
  10.         second argument is a bitmask, query_actions() will return a
  11.         flat array containing information on all verbs added to ob.
  12.         The second argument is optional (default is the bitmask 1).
  13.                 1:  the verb
  14.                 2:  type
  15.                 4:  short_verb
  16.                 8:  object
  17.                 16: function
  18.  
  19.         "type" is one of the values defined in <sent.h> (/sys/sent.h)
  20.         (which is provided with the parser source).
  21.  
  22.         SENT_PLAIN        added with add_action (fun, cmd);
  23.         SENT_SHORT_VERB        added with add_action (fun, cmd, 1);
  24.         SENT_NO_SPACE        added with add_action (fun); add_xverb (cmd);
  25.         SENT_NO_VERB        just an add_action (fun); without a verb
  26.         SENT_MARKER        internal, won't be in the returned array
  27.         negative value: The verb given by the player has to match only
  28.           the leading -<value> characters of the action's verb.
  29.  
  30. SEE ALSO
  31.         add_action(E), init(A)
  32.